#pragma config(Sensor, in1,    Light,          sensorReflection)
#pragma config(Sensor, in2,    RightLine,      sensorLineFollower)
#pragma config(Sensor, in3,    MiddleLine,     sensorLineFollower)
#pragma config(Sensor, in4,    LeftLine,       sensorLineFollower)
#pragma config(Sensor, dgtl1,  Bumper,         sensorTouch)
#pragma config(Motor,  port2,           LeftMotor,     tmotorVex269, openLoop, reversed)
#pragma config(Motor,  port4,           RightMotor,    tmotorVex269, openLoop)
#pragma config(Motor,  port6,           LeftTop,       tmotorVex269, openLoop)
#pragma config(Motor,  port8,           ClawMotor,     tmotorVex269, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

void moveRobot (int speed){
  motor [LeftTop]=speed;
}

 int checkBump(){
  return SensorValue (Bumper);
}

task main () {
 if (checkBump){
   moveRobot (100);
   wait1Msec(1000);
}
}
